import request from "@/utils/request";

const ESComparison = {
	getIndices: () => request.get("/api/es/index"),
	getMapping: data => request.get("/api/es/mapping", data),
	search: data => request.post("/api/es/search", data),
	compare: data => request.post("/api/es/compare", data)
};

export default ESComparison;
